/**
 * 
 */
package lt.vin.exaatto.client.events;

import lt.vin.exaatto.shared.Chat;

import com.google.gwt.event.shared.GwtEvent;

/**
 * @author Vincentas
 *
 */
public class ChatRemovedEvent extends GwtEvent<ChatRemovedHandler> {

	private final Chat chat;
	
	public ChatRemovedEvent(Chat chat) {
		this.chat = chat;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ChatRemovedHandler> getAssociatedType() {
		return ChatRemovedHandler.type;
	}

	@Override
	protected void dispatch(ChatRemovedHandler handler) {
		handler.removedChat(chat);		
	}

}
